import Vue from 'vue'
import Vuex from 'vuex'
import state from './states'
import * as getters from './getters'
import * as actions from './actions'
import * as mutations from './mutations'

Vue.use(Vuex)

// import testModule from './modules/test'
//
// let modules = {}
// modules[testModule.namespace] = testModule
//
// export default new Vuex.Store({
//     modules
// })

export default new Vuex.Store({
    state: state,
    getters: getters,
    actions: actions,
    mutations: mutations,
})